package com.matt.repository.news;

import com.matt.domain.news.SystemNotification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/28
 * *******************************
 */
public interface SystemNotificationRepository extends JpaRepository<SystemNotification, String>, JpaSpecificationExecutor<SystemNotification> {

//    @Transactional
//    @Modifying
//    @Query(value = "delete from system_notification where id =:id ",nativeQuery = true)
//    void deleteById(@Param("id") String id);

}
